<div class="shop_tabs">
    {foreach from=$topicmenu item=i name=shop_tabs}
        {if $i.category==$topic.nom && $i.category|@sizeof>0}
            {foreach from=$i.lvl1 item=j name=sub}
                {if isset($cat) && $cat.nom == $j.subcategory}
                    <div class="onglet_subcat_selected"><a href="{$j.subcategory.url}tous/" title="">{$j.subcategory}</a></div>
                {else}
                    <div class="onglet_subcat"><a href="{$j.subcategory.url}tous/" title="">{$j.subcategory}</a></div>
                {/if}
            {/foreach}
        {/if}
    {/foreach}
    <div class="trait_bleu"></div>
    <div class="clear"></div>
</div>